<template>
	<div class="detail-page root">
		<GlobalCard :list="getDetailData()">
			<text class="button-text" @click="back">返回</text>
		</GlobalCard>
	</div>
</template>

<script lang="ts" setup>
import { useDetailStore } from "@/stores/detail";
import GlobalCard from "@/components/GlobalCard.vue";
const { getDetailData } = useDetailStore();
const back = () => {
	uni.switchTab({
		url: `/pages/search/index`,
	});
};
</script>

<style scoped>
.detail-page {
	padding: 20px;
	background: linear-gradient(130deg, #f7f9fd 0%, #edf4fc 100%);
}
</style>
